<html>
<body>
Reports case-insensitive comparisons that can be replaced with <code>equals(..., ignoreCase = true)</code>.
<p>By using <code>equals()</code> you don't have to allocate extra strings with <code>toLowerCase()</code> or <code>toUpperCase()</code> to compare strings.</p>
<p>The quick-fix replaces the case-insensitive comparison that uses <code>toLowerCase()</code> or <code>toUpperCase()</code> with <code>equals(..., ignoreCase = true)</code>.</p>
<p><b>Note:</b> May change semantics for some locales.</p>
<p><b>Example:</b></p>
<pre><code>
  fun main() {
      val a = &quot;KoTliN&quot;
      val b = &quot;KOTLIN&quot;
      println(a.toLowerCase() == b.toLowerCase())
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun main() {
      val a = &quot;KoTliN&quot;
      val b = &quot;KOTLIN&quot;
      println(a.equals(b, ignoreCase = true))
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>